package hello.controller;

import hello.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class LoginController {

    @Autowired
    MessageService messageService;

    @RequestMapping("/login")
    public String login(){
        System.out.println("hello mvc");
        String mess = messageService.getMessage();
        System.out.println(mess);
        return "login";
    }
}

